package com.htzz.collection.bean;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.springframework.beans.factory.annotation.Required;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

/**
 * 采集点信息表
 * 
 * @author xdz
 * @email ixudezhi@163.com
 * @date 2021-08-31 10:20:23
 */
@Data
@ApiModel("采集点存储信息")
public class KInfoEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 *  主键
	 */
	@JsonIgnore
	private Integer id;
	/**
	 * 设备ID
	 */
	@Length(min = 1,max = 64)
	@JsonIgnore
	private String devId;
	/**
	 * 采集点
	 */
	@NotEmpty
	@Length(min = 1,max = 64)
	@ApiModelProperty(value = "采集点",example = "speed")
	private String k;
	/**
	 * 采集点中文名
	 */
	@NotEmpty
	@Length(min = 1,max = 64)
	@ApiModelProperty(value = "采集名称",example = "速率")
	private String name;
	/**
	 * 采集点类型
	 */
	@Length(min = 1,max = 25)
	@ApiModelProperty(value = "类型",example = "数值")
	private String type;

}
